Update all models to use sqlalchemy 2 annotations#55954
Merged
vincbeck merged 1 commit intoapache:mainfrom Sep 29, 2025
Merged
Conversation
3713477 to
6b26260
Compare
Dev-iL
reviewed
Sep 22, 2025
4880099 to
5da471b
Compare
5da471b to
513c389
Compare
ashb
reviewed
Sep 24, 2025
...ow-core/src/airflow/migrations/versions/0088_3_2_0_add_length_dag_bundle_team_bundle_name.py
Show resolved
Hide resolved
ashb
reviewed
Sep 24, 2025
ashb
reviewed
Sep 24, 2025
Member
ashb
left a comment
There was a problem hiding this comment.
Question: do we need to continue supporting SQLA1, or can we "simply" switch to 2.x and update the syntax at the same time?
Contributor
Author
In order to switch to SQLA2 we need 2 things (the 2nd point can be split in 2, so let's say 3 points):
We need to complete all these things in order to switch to SQLA2 so no I do not think and should not do that in the same PR. |
9f1ac41 to
805f1db
Compare
805f1db to
cea049f
Compare
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 7, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 7, 2025
…5954)" (apache#56296) This reverts commit 3150430.
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 8, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 8, 2025
…5954)" (apache#56296) This reverts commit 3150430.
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 9, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 9, 2025
…5954)" (apache#56296) This reverts commit 3150430.
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 10, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 10, 2025
…5954)" (apache#56296) This reverts commit 3150430.
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 11, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 11, 2025
…5954)" (apache#56296) This reverts commit 3150430.
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 12, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 12, 2025
…5954)" (apache#56296) This reverts commit 3150430.
dabla
pushed a commit
to dabla/airflow
that referenced
this pull request
Oct 12, 2025
dabla
pushed a commit
to dabla/airflow
that referenced
this pull request
Oct 12, 2025
…5954)" (apache#56296) This reverts commit 3150430.
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 14, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 14, 2025
…5954)" (apache#56296) This reverts commit 3150430.
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 15, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 15, 2025
…5954)" (apache#56296) This reverts commit 3150430.
vincbeck
added a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Oct 15, 2025
Contributor
Author
|
This PR was reverted because it made the CI fail. I finally could fix it and is available here: #56330. Any review is appreciated :) |
snreddygopu
pushed a commit
to Teradata/airflow
that referenced
this pull request
Oct 16, 2025
…traints (apache#56330) * Update all models to use `sqlalchemy` 2 annotations (apache#55954) * Fix NULL constraints
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 17, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 17, 2025
…5954)" (apache#56296) This reverts commit 3150430.
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 17, 2025
…traints (apache#56330) * Update all models to use `sqlalchemy` 2 annotations (apache#55954) * Fix NULL constraints
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 19, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 19, 2025
…5954)" (apache#56296) This reverts commit 3150430.
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 19, 2025
…traints (apache#56330) * Update all models to use `sqlalchemy` 2 annotations (apache#55954) * Fix NULL constraints
TyrellHaywood
pushed a commit
to TyrellHaywood/airflow
that referenced
this pull request
Oct 22, 2025
…traints (apache#56330) * Update all models to use `sqlalchemy` 2 annotations (apache#55954) * Fix NULL constraints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update all models to use
sqlalchemy2 annotations. Keep it also backward compatible with SQLA 1.This is required to switch to
sqlalchemy2.^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.